import service from "."
export const addOrderApi = (userid: string) => service.post('/order/addOrder', { userid })
export const orderInfoApi = (userid: string) => service.post('/user/orderlist', { userid })
interface MyAddressInfo {
  userid: string,
  name: string,
  tel: string,
  province: string,
  city: string,
  county: string,
  addressDetail: string,
  time: string,
}
export const updateAddressInfoApi = (info: MyAddressInfo) => service.post('/order/updateOrderAddress', info)
export const confirmOrderApi = (userid: string, time: string) => service.get('/order/confirmOrder', {
  params: { userid, time }
})
